﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using System.Web.Mvc.Html;
using System.Web.Routing;

using LeMigue.TeamPortal.Base.Mvc;

namespace LeMigue.TeamPortal.Base.Helpers
{
    public static class ContainerHomeHelper
    {

        public static void ContainerHomeRender(this HtmlHelper helper)
        {
            ContainerHome[] containerHome = TeamPortalPlugins.ConteinerPlugin<ContainerHome>().OrderBy(t => t.Ordem).ToArray();

            foreach (ContainerHome box in containerHome)
            {
                helper.RenderAction(box.Action, box.Controller);
            }
        }

    }
}
